﻿<Window x:Class="Caliburn.Micro.KeyBinding.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        Width="300"
        Height="480">
  <StackPanel>
    <TextBlock TextWrapping="WrapWithOverflow"
               HorizontalAlignment="Left">
      Example application that will catch the Enter key and execute an action based on it.
    </TextBlock>
    <TextBlock />
    <TextBox HorizontalAlignment="Left"
             Width="278"
             cal:Message.Attach="[Key Enter] = [EnterPressed]">
    </TextBox>
    <TextBlock />
    <TextBlock x:Name="EnterMessage"
               TextWrapping="WrapWithOverflow" />
  </StackPanel>
</Window>